export const request = (method, request) => {
  if (window.pywebview === undefined) {
      return null
  }
  return window.pywebview.api[method](request)
}